#tab1.am-tab-panel.am-fade.am-in.am-active.am-padding-0
    each product in news
        .am-g.pro-block-unsort-content.am-margin-bottom-sm
            .am-u-sm-12.am-text-left.gray-color.md-line-height #{product.product.title}
            //此处的图分大小，到时候做判断，显示类型 三张，两张，一张
            if product.product.images.length == 1
                .am-u-sm-6
                    a(href="/product/" + product.objectId)
                        img.img-responsive(src="#{__IMAGE_HOST__}#{product.product.images[0]}")
            else if(product.product.images.length == 2)
                .am-u-sm-5
                    a(href="/product/" + product.objectId)
                        img.img-responsive(src="#{__IMAGE_HOST__}#{product.product.images[0]}")
                .am-u-sm-5
                    a(href="/product/" + product.objectId)
                        img.img-responsive(src="#{__IMAGE_HOST__}#{product.product.images[1]}")
            else if (product.product.images.length > 2)
                .am-u-sm-4
                    a(href="/product/" + product.objectId)
                        img.img-responsive(src="#{__IMAGE_HOST__}#{product.product.images[0]}")
                .am-u-sm-4
                    a(href="/product/" + product.objectId)
                        img.img-responsive(src="#{__IMAGE_HOST__}#{product.product.images[1]}")
                .am-u-sm-4
                    a(href="/product/" + product.objectId)
                        img.img-responsive(src="#{__IMAGE_HOST__}#{product.product.images[2]}")
            .am-u-sm-12.am-block.money-color.lg-font.am-text-left ￥#{product.salePrice}
            .add-cart
#tab2.am-tab-panel.am-fade.am-padding-0
    each products,sort in Products
        .am-contaier.pro-type
            .am-g.md-line-height.border-bottom-add.pro-type-title
                .am-u-sm-12  #{sort}
            each product in products
                .am-g.pro-block-unsort-content.am-margin-bottom-sm
                    .am-u-sm-12.am-text-left.gray-color.md-line-height #{product.product.title}
                    //此处的图分大小，到时候做判断，三张，两张，一张
                    if product.product.images.length == 1
                        .am-u-sm-6
                            a(href="/product/" + product.objectId)
                                img.img-responsive(src="#{__IMAGE_HOST__}#{product.product.images[0]}")
                    else if(product.product.images.length == 2)
                        .am-u-sm-5
                            a(href="/product/" + product.objectId)
                                img.img-responsive(src="#{__IMAGE_HOST__}#{product.product.images[0]}")
                        .am-u-sm-5
                            a(href="/product/" + product.objectId)
                                img.img-responsive(src="#{__IMAGE_HOST__}#{product.product.images[1]}")
                    else if (product.product.images.length > 2)
                        .am-u-sm-4
                            a(href="/product/" + product.objectId)
                                img.img-responsive(src="#{__IMAGE_HOST__}#{product.product.images[0]}")
                        .am-u-sm-4
                            a(href="/product/" + product.objectId)
                                img.img-responsive(src="#{__IMAGE_HOST__}#{product.product.images[1]}")
                        .am-u-sm-4
                            a(href="/product/" + product.objectId)
                                img.img-responsive(src="#{__IMAGE_HOST__}#{product.product.images[2]}")
                    .am-u-sm-12.am-block.money-color.lg-font.am-text-left ￥#{product.salePrice}
                    .add-cart